package com.hz.ruoyifarmbase.basedata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hz.ruoyifarmbase.basedata.domain.AgrBaseWorker;
import com.ruoyi.common.core.web.domain.AjaxResult;

import java.util.List;
import java.util.Map;

/**
 * @author 侯文波
 * @date 2025/3/5 11:22
 * @description:
 */
public interface AgrBaseWorkerService extends IService<AgrBaseWorker> {
    /**
     * @author 侯文波
     * 查询工人信息列表
     *
     */
    public List<AgrBaseWorker> selectAgrBaseWorkerList(AgrBaseWorker agrBaseWorker);

    /**
     * @author 侯文波
     * 新增保存工人信息
     */
    public int insertAgrBaseWorker(AgrBaseWorker agrBaseWorker);

    /**
     * @author 侯文波
     * 修改保存工人信息
     */
    public int updateAgrBaseWorker(AgrBaseWorker agrBaseWorker);

    /**
     * @author 侯文波
     * 根据id删除工人信息
     */
    public int deleteAgrBaseWorkerByWorkerId(Long workerId);

    /**
     * @author gmy
     * 获取质量监测员
     * @return
     */
    public List<Map<String, Object>> getWorkerCheck();

    public Long countWorker();

    /**
     * @return:
     * @Author: xqd
     * @Date: 2025/3/17 16:42
     * @Description: app登录方法
     */
    AjaxResult login(AgrBaseWorker agrBaseWorker);

    AjaxResult detail(Long workerId);
}
